import baseUrl from './base-url-config'

const { product: prefix, httpApi } = baseUrl

export default {
  // 查询eCRF下拉列表
  subjectVisits: {
    url: `${prefix}/edc/visit/subject/status/subjectVisits`,
    method: 'get',
  },
  // 获取访视表信息
  subjectVisitTables: {
    url: `${prefix}/edc/visit/subject/table/subjectVisitTables`,
    method: 'get',
  },
  // 获取增加访视
  subjectVisitAddSelect: {
    url: `${prefix}/edc/visit/subject/status/subjectVisitAddSelect`,
    method: 'get',
  },
  // 获取增加访视表
  findVisitTableList: {
    url: `${prefix}/edc/visit/subject/status/visitTableList`,
    method: 'get',
  },
  // 增加访视表
  createVisit: {
    url: `${prefix}/edc/visit/subject/status/create`,
    method: 'post',
  },
  // 删除访视
  removeSubjectVisit: {
    url: `${prefix}/edc/visit/subject/status/removeSubjectVisit`,
    method: 'get',
  },
  // 获取访视表字段
  getSubjectData: {
    url: `${prefix}/edc/visit/subject/table/getSubjectData`,
    method: 'post',
  },
  // 获取使用访视表
  getUsedTable: {
    url: `${prefix}/edc/visit/subject/status/getUsedTable`,
    method: 'get',
  },
  // 修改访视表
  subjectVisitUpdateTable: {
    url: `${prefix}/edc/visit/subject/status/subjectVisitUpdateTable`,
    method: 'post',
  },
  // 保存访视表
  saveSubjectData: {
    url: `${prefix}/edc/visit/subject/table/saveSubjectData`,
    method: 'post',
  },
  // 获取内嵌表字段数据
  getEmbeddedTable: {
    url: `${prefix}/edc/visit/subject/table/getEmbeddedTable`,
    method: 'post',
  },

  // 手动添加质疑
  addQueryAPI: {
    url: `${prefix}/edc/query/manage/addQuery`,
    method: 'post',
  },
  // 表或者字段质疑列表查询
  getQueryListAPI: {
    url: `${prefix}/edc/query/manage/getQueryList`,
    method: 'GET',
  },

  // 回复质疑
  replyQueryAPI: {
    url: `${prefix}/edc/query/manage/replyQuery`,
    method: 'POST',
  },
  // 备注质疑
  remarkQueryAPI: {
    url: `${prefix}/edc/query/manage/remarkQuery`,
    method: 'POST',
  },
  // 关闭质疑
  closeQueryAPI: {
    url: `${prefix}/edc/query/manage/closeQuery`,
    method: 'POST',
  },
  // 添加批注
  annotationSave: {
    url: `${prefix}/edc/visit/subject/table/annotationSave`,
    method: 'post',
  },
  // 查询批注
  annotationList: {
    url: `${prefix}/edc/visit/subject/table/annotationList`,
    method: 'get',
  },
  // 质疑入库
  addQueryAutoCheckRule: {
    url: `${prefix}/edc/query/manage/addQueryAutoCheckRule`,
    method: 'post',
  },
  // PI签名
  updateSign: {
    url: `${prefix}/edc/visit/subject/table/updateSign`,
    method: 'post',
  },
  // 修改表类型
  updateTableStatus: {
    url: `${prefix}/edc/visit/subject/table/updateTableStatus`,
    method: 'get',
  },
  // 辅助录入
  getSubjectDataTranscript: {
    url: `${prefix}/edc/visit/subject/table/getSubjectDataTranscript`,
    method: 'post',
  },
  // 失效
  invalidTable: {
    url: `${prefix}/edc/visit/subject/table/invalidTable`,
    method: 'post',
  },
  // 获取操作类型与变量名
  getTypeAndName: {
    url: `${prefix}/edc/visit/subject/operate/his/getTypeAndName`,
    method: 'get',
  },
  // 获取操作稽查轨迹
  getHisDataPage: {
    url: `${prefix}/edc/visit/subject/operate/his/getDataPage`,
    method: 'post',
  },
  // 获取稽查访视与访视表
  getSelectTerm: {
    url: `${prefix}/edc/visit/subject/operate/his/getSelectTerm`,
    method: 'get',
  },
  // 获取访视稽查轨迹
  getHisPage: {
    url: `${prefix}/edc/visit/subject/operate/his/getPage`,
    method: 'post',
  },
}
